home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm1 / intsdkss.lha / include / netinet / icmp_var.h next >
C/C++ Source or Header  |  1996-04-09  |  2KB  |  47 lines

  1. #ifndef NETINET_ICMP_VAR_H
  2. #define NETINET_ICMP_VAR_H
  3. /*
  4.  * Copyright (c) 1982, 1986 Regents of the University of California.
  5.  * All rights reserved.
  6.  *
  7.  * Redistribution and use in source and binary forms are permitted
  8.  * provided that the above copyright notice and this paragraph are
  9.  * duplicated in all such forms and that any documentation,
  10.  * advertising materials, and other materials related to such
  11.  * distribution and use acknowledge that the software was developed
  12.  * by the University of California, Berkeley.  The name of the
  13.  * University may not be used to endorse or promote products derived
  14.  * from this software without specific prior written permission.
  15.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  16.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  17.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  18.  *
  19.  *    @(#)icmp_var.h  7.4 (Berkeley) 6/29/88
  20.  */
  21.  
  22. /*
  23.  * Variables related to this implementation
  24.  * of the internet control message protocol.
  25.  */
  26. struct    icmpstat {
  27. /* statistics related to icmp packets generated */
  28.     long    icps_error;        /* # of calls to icmp_error */
  29.     long    icps_oldshort;        /* no error 'cuz old ip too short */
  30.     long    icps_oldicmp;        /* no error 'cuz old was icmp */
  31.     long    icps_outhist[ICMP_MAXTYPE + 1];
  32. /* statistics related to input messages processed */
  33.     long    icps_badcode;        /* icmp_code out of range */
  34.     long    icps_tooshort;        /* packet < ICMP_MINLEN */
  35.     long    icps_checksum;        /* bad checksum */
  36.     long    icps_badlen;        /* calculated bound mismatch */
  37.     long    icps_reflect;        /* number of responses */
  38.     long    icps_inhist[ICMP_MAXTYPE + 1];
  39. };
  40.  
  41. #ifdef KERNEL
  42. #if 0
  43. extern struct icmpstat icmpstat;
  44. #endif
  45. #endif
  46. #endif
  47.